﻿<%@ Page Language="C#" MasterPageFile="~/Admin.Master"   AutoEventWireup="true" CodeBehind="ProductManagement.aspx.cs" Inherits="VCN.admin.ProductManagement" %>

<asp:Content ID="Content17" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table width="100%" cellspacing="3" cellpadding="3" border="0">
        <tbody>
            <tr>
                <th scope="col" class="title" colspan="2">
                    <h2 style="font-size: x-large; color: #0099FF">
                        CẬP NHẬT SẢN PHẨM</h2>
                </th>
            </tr>
            <tr>
                <td colspan="2" class="row" align="center" style="height: 5px">
                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" 
                        HeaderText="Bạn chưa nhập các nội dung sau :" style="text-align: left" />
                </td>
            </tr>
            <tr>
                <td class="row" 
                    
                    style="height: 32px; width: 18%; color: #0099FF; text-align: left; font-weight: bold;">
                    Tên loại sản phẩm </td>
                <td width="46%" align="left" class="row" style="height: 32px; width: 70%;">
                    <asp:DropDownList ID="ddl_Category" runat="server" Width="258px">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="row" 
                    
                    style="height: 32px; width: 18%; color: #0099FF; text-align: left; font-weight: bold;">
                    Tên sản phẩm&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; </td>
                <td width="46%" align="left" class="row" style="height: 32px; width: 70%;">
                    <asp:TextBox ID="txt_ProductName" runat="server" Width="258px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfv_ProductName" runat="server" 
                        ControlToValidate="txt_ProductName" ErrorMessage="Chưa nhập tên sản phẩm">(*)</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="row" 
                    
                    style="height: 32px; width: 18%; color: #0099FF; text-align: left; font-weight: bold;">
                    Mã sản phẩm&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td>
                <td width="46%" align="left" class="row" style="height: 32px; width: 70%;">
                    <asp:TextBox ID="txt_ProductKey" runat="server" Width="258px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfv_ProductKey" runat="server" 
                        ControlToValidate="txt_ProductKey" ErrorMessage="Chưa nhập mã sản phẩm">(*)</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="row" 
                    
                    
                    style="height: 51px; width: 18%; color: #0099FF; text-align: left; font-weight: bold;">
                    Mô tả&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td>
                <td width="46%" align="left" class="row" style="height: 51px; width: 70%;">
                    <asp:TextBox ID="txt_ProductDescription" runat="server" Width="363px" 
                        Height="133px" TextMode="MultiLine"></asp:TextBox>
                    
                    <asp:RequiredFieldValidator ID="rfv_Des" runat="server" 
                        ControlToValidate="txt_ProductDescription" 
                        ErrorMessage="Chưa nhập mô tả sản phẩm">(*)</asp:RequiredFieldValidator>
                    
                </td>
            </tr>
            <tr>
                <td class="row" 
                    
                    style="height: 32px; width: 18%; color: #0099FF; text-align: left; font-weight: bold;">
                    Ảnh sản phẩm&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td>
                <td width="46%" align="left" class="row" style="height: 32px; width: 70%;">
                    <br />
&nbsp;<asp:Image ID="imgPreview" runat="server" Height="150px" Width="150px" 
                        AlternateText="No Image" ImageUrl="~/admin/img/no_images.jpg"
                             />
                    <br />
                    <br />
                    <asp:FileUpload ID="FileUpload" runat="server" 
                        ToolTip="Click here to upload an image for product." />
                    <br />
                    <br />
                    
                </td>
            </tr>
            <tr>
                <td height="43" align="right" class="save" 
                    style="width: 18%; color: #0099FF; font-weight: bold">
                    &nbsp;
                </td>
                <td height="43" align="left">


                    &nbsp;<asp:Button ID="btnAdd" runat="server" Text="Cập nhật" 
                        onclick="btnAdd_click"  />
                    &nbsp;<asp:Button ID="btnReset" runat="server" Text="Xóa trắng" 
                        onclick="btnReset_Click" CausesValidation="False"/>
                    &nbsp;<asp:Button ID="btnCancel" runat="server" Text="Thoát" 
                         CausesValidation="False" onclick="btnCancel_click" />
                </td>
            </tr>
        </tbody>
    </table>
</asp:Content>